<template>
  <div class="all">
    <Nav :leftShow="left_show" :leftName="left_name" :rightName="right_name" :titleName="title_name">
    </Nav>
    <div class="top">
      <div class="left">
        <p>
          <i class="iconfont icon-kefu"></i>
        </p>
        <span class="service1">在线客服</span>
      </div>
      <a href="tel:10105757" class="left">
        <p>
          <i class="iconfont icon-dianhua"></i>
        </p>
        <span class="service1">在线客服</span>
      </a>
    </div>
    <div class="content">
      <ul>
        <div class="line" @click="content($event)">
          <li>{{servicetitle.supervipCaption}}</li>
          <span class="span2" v-show="0">{{servicetitle.supervipContent}}</span>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line" @click="content($event)">
          <li>{{servicetitle.signCaption}}</li>
          <span class="span2" v-show="0">{{servicetitle.signContent}}</span>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line" @click="content($event)">
          <li>{{servicetitle.rankCaption}}</li>
          <span class="span2" v-show="0">{{servicetitle.rankContent}}</span>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line" @click="content($event)">
          <li>{{servicetitle.pointtextCaption}}</li>
          <span class="span2" v-show="0">{{servicetitle.pointtextContent}}</span>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line" @click="content($event)">
          <li>{{servicetitle.phototutorialCaption}}</li>
          <span class="span2" v-show="0">{{servicetitle.phototutorialContent}}</span>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line" @click="content($event)">
          <li>{{servicetitle.paymentCaption}}</li>
          <span class="span2" v-show="0">{{servicetitle.paymentContent}}</span>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line">
          <li>{{servicetitle.otherCaption}}</li>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line">
          <li>{{servicetitle.ontimeCaption}}</li>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line">
          <li>{{servicetitle.memberTimesCaption}}</li>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line">
          <li>{{servicetitle.memberFullCutCaption}}</li>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line">
          <li>{{servicetitle.memberCaption}}</li>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line">
          <li>{{servicetitle.hongbaoCaption}}</li>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line">
          <li>{{servicetitle.freshmanCaption}}</li>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line">
          <li>{{servicetitle.forgotCaption}}</li>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line">
          <li>{{servicetitle.discountCaption}}</li>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line">
          <li>{{servicetitle.disclaimerCaption}}</li>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line">
          <li>{{servicetitle.couponCaption}}</li>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line">
          <li>{{servicetitle.businessCaption}}</li>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line">
          <li>{{servicetitle.balanceCaption}}</li>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line">
          <li>{{servicetitle.awesomeRestaurantCaption}}</li>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line">
          <li>{{servicetitle.anonymousBuyCaption}}</li>
          <i class="iconfont icon-jiantou"></i>
        </div>
        <div class="line">
          <li>{{servicetitle.activityCaption}}</li>
          <i class="iconfont icon-jiantou"></i>
        </div>
      </ul>
    </div>
  </div>
</template>
<script>
  import Nav from "@/components/Nav.vue";
  export default {
    data() {
      return {
        servicetitle: Object,
        left_show: false,
        left_name: '空',
        title_name: '服务中心',
        right_name: '',
      }
    },
    components: {
      Nav,
    },
    methods: {
      content: function (event) {
        this.$router.push({ name: "Servicecontent" })
        localStorage.setItem("title", event.currentTarget.childNodes[0].innerHTML)
        localStorage.setItem("content", event.currentTarget.childNodes[1].innerHTML)
      }
    },
    created() {
      this.axios.get(" https://elm.cangdu.org/v3/profile/explain").then(((res) => {
        // console.log(res.data)
        this.servicetitle = res.data;
      })).catch((err) => {
        console.log(err)
      })
    },
  }
</script>
<style lang="less" scoped>
  .all {
    margin-top: 44px;
  }


  p {
    padding-bottom: 5px;
  }

  .top {
    display: flex;
    justify-content: space-around;
    background-color: white;
  }

  .left {
    width: 45%;
    padding: 20px 50px;
    border-right: 1px solid gainsboro;
    text-decoration: none;
    color: #333;
  }

  .icon-kefu {
    color: rgb(255, 123, 82);
    font-size: 25px;
    margin-left: 20px;
  }

  .icon-dianhua {
    color: rgb(106, 194, 11);
    font-size: 25px;
    margin-left: 20px;
  }

  .service1 {
    margin-top: 20px;
    font-size: 13px;
    margin-left: 5px;
  }

  .line {
    float: left;
    width: 93%;
    height: 50px;
    line-height: 50px;
    background-color: white;
    border-top: 1px solid gainsboro;
    float: left;
    padding: 0 15px;
    color: rgb(80, 79, 79);
  }

  li {
    float: left;
  }

  .icon-jiantou {
    float: right;
    font-size: 14px;
  }
</style>